package assess

import (
	"time"

	"gitcode.com/G-YT/ANN/server/global"
)

// Customer 客户档案模型
type Customer struct {
	global.GVA_MODEL
	HmID      uint       `json:"hmID" gorm:"column:hmID;comment:健管师ID;not null"`
	Phone     string     `json:"phone" gorm:"column:phone;comment:客户标识(手机号);not null;uniqueIndex"`
	Name      string     `json:"name" gorm:"column:name;comment:姓名;not null;size:12"`
	Sex       uint       `json:"sex" gorm:"column:sex;comment:性别 1男 2女;default:1;size:2"`
	Birthday  *time.Time `json:"birthday" gorm:"column:birthday;comment:出生年月日"`
	Cm        float64    `json:"cm" gorm:"column:cm;comment:身高(cm);not null"`
	Kg        float64    `json:"kg" gorm:"column:kg;comment:体重(kg);not null"`
	Waistline float64    `json:"waistline" gorm:"column:waistline;comment:腰围(cm);not null"`
	Hipline   float64    `json:"hipline" gorm:"column:hipline;comment:臀围(cm);not null"`
}

func (Customer) TableName() string {
	return "aan_customer"
}
